<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>青年公寓系统 - 服务管理修改</title>
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/add.css">
<link rel="stylesheet" href="${pageContext.request.contextPath}/lib/bp.css">
<style type="text/css">
	.breadcrumb{
		margin-bottom:0;
	    padding-bottom: 20px;
	}
	.breadcrumb,.breadcrumb li{
		font-size:20px;
		background: white;
		line-height: 50px;
	}
	.breadcrumb li a:hover{
		text-decoration: underline;
	}
	.form-control{
		height: auto;
	}
	.form-group{
		overflow: hidden;
		margin-bottom: 30px;
	}
	.sub{
		width:300px;
		margin-left:150px;
		display: flex;
		justify-content: space-around;
	}
	.btn{
		width: 80px;
	}

</style>
</head>
<body style="background: #f5f5f5">
	<div style="margin: 15px 30px;">
		<div style="border-radius:5px;">
			<ol class="breadcrumb">
				<li><a href="${pageContext.request.contextPath}/admin">服务管理</a></li>
				<li><a href="${pageContext.request.contextPath}/listFlatrepair?index=1">修缮记录</a></li>
				<li class="active">修改记录</li>
			</ol>
			<div style="padding: 0 150px;overflow: hidden;background: white;">
					<!-- onsubmit="subForm()" -->
				<form action="${pageContext.request.contextPath}/updateFlatrepair" method="post" 
					  class="form-horizontal" >
					  <input type="hidden" name="fr_id" value="${flats.fr_id}" />
					  <div class="form-group cradio">
					    <label  class="col-sm-2 control-label">房间号</label>
					    <div class="col-sm-5">
					    	<select name="flat_id" style="width: 100px;height: 25px;">
				    			<c:forEach items="${listH}" var="h">
									<option value="${h.h_id }" ${h.h_id==flats.flat_id?"selected":"" } >${h.h_roomNo }</option>
		     					</c:forEach>
				    	</select>
					    </div>
					  </div>
					   <div class="form-group cradio">
					    <label  class="col-sm-2 control-label">负责人</label>
					    <div class="col-sm-5">
					    	<select name="lo_id" style="width: 100px;height: 25px;">
				    		<c:forEach items="${listL}" var="l">
								<option value="${l.lo_id }" ${l.lo_id==flats.lo_id?"selected":"" } >${l.lo_name }</option>
		     				</c:forEach>
				    		</select>
					    </div>
					  </div>

				  <div class="form-group">
				    <label  class="col-sm-2 control-label">修缮说明</label>
				    <div class="col-sm-5">
				    	<textarea class="form-control" cols="50" rows="3" name="fr_explain" placeholder="修缮说明">${flats.fr_explain }</textarea>
				    </div>
				  </div>
				  <div class="form-group">
				    <label  class="col-sm-2 control-label">修缮结果</label>
				    <div class="col-sm-5">
				    	<textarea class="form-control" cols="50" rows="3" name="fr_result" placeholder="修缮结果">${flats.fr_result }</textarea>
				    </div>
				  </div>
				  <div class="form-group">
				    <label  class="col-sm-2 control-label">备注说明</label>
				    <div class="col-sm-5">
				    	<textarea class="form-control" cols="50" rows="3" name="fr_remark" placeholder="备注说明">${flats.fr_remark }</textarea>
				    </div>
				  </div>
					  <div class="sub" >
					 		<input type="submit" value="修改" class="btn btn-info">
					 		<input type="button" value="取消" class="btn btn-info" onclick="window.history.back();">
					  </div>
				</form>
			</div>
		</div>
		
	</div>
	<!-- 表单验证待完成 -->
	<script type="text/javascript">
		
	</script>
</body>
</html>